@layout("/common/_container.html"){
<link rel="stylesheet" href="${ctxPath}/static/css/plugins/combo.select.css">
<div class="ibox float-e-margins">
    <div class="ibox-content">
        <div class="form-horizontal" id="CounterplanTypeTemplateInform">

            <input type="hidden" id="id" value="${item.id}">

            <div class="row">
                <div class="col-sm-6 b-r">
                    <#input id="name" name="预案模板名称" value="${item.name}" underline="true"/>
                    <#select id="type" name="类型" underline="true"  value="${item.type}">
                        <option value>请选择</option>
                        @for(counterplantype in counterplantypes){
                        @if(isNotEmpty(item.type) && item.type == counterplantype.type){
                        <option value="${counterplantype.type}" selected="selected">${counterplantype.type}</option>
                        @}else{
                        <option value="${counterplantype.type}" >${counterplantype.type}</option>
                        @}
                        @}
                    </#select>
                    <#input id="accidentTypeName" name="事故类型" underline="true"
                    value="${accidentTypeName}" hiddenValue="${item.accidentTypeId}"
                    hidden="accidentTypeId"
                    clickFun="CounterplanTemplateInfoDlg.showAccidentTypeSelectTree(); return false;"
                            onkeyup="CounterplanTemplateInfoDlg.AutoMatchAccidentTypeSelectTree(this); return false"
                    style="background-color: #ffffff !important;"
                    selectFlag="true" selectId="accidentTypeTreeDiv" selectTreeId="accidentTypeTree" selectStyle="width:244px !important;"/>
                </div>

                <div class="col-sm-6">
                    <#selectDict id="level" name="响应等级" underline="true" code="responseLevel" value="${item.level}" />

                    <#input id="stationSel" name="地点" underline="true"
                    value="${stationName}" hiddenValue="${item.stationId}"
                    hidden="stationId"
                    clickFun="CounterplanTemplateInfoDlg.showStationSelectTree(); return false;"
                            onkeyup="CounterplanTemplateInfoDlg.showStationSelectTree; return false"
                    style="background-color: #ffffff !important;"
                    selectFlag="true" selectId="stationTreeDiv" selectTreeId="stationTree" selectStyle="width:244px !important;"/>
                    <input type="hidden" id="checkCount" value="${checkCount}">
                    <#input id="accidentMain" name="岗位" underline="true"
                            readonly="readonly" value="${item.accidentMain}"
                            clickFun="CounterplanTemplateInfoDlg.showPositionStatementSelectTree(); return false;"
                            style="background-color: #ffffff !important;"
                            selectFlag="true" selectId="parentTreeDiv" selectTreeId="parentTree" selectStyle="width:244px !important;"/>

                </div>
            </div>


            <!-- 加载编辑器的容器 -->
            <#ue id="content" value="${item.content}"/>

            <div class="row btn-group-m-t">
                <div class="col-sm-7">
                    <#button btnCss="info" name="提交" id="ensure" icon="fa-check"
                    clickFun="CounterplanTemplateInfoDlg.editSubmit()"/>
                    <#button btnCss="danger" name="取消" id="cancel" icon="fa-eraser"
                    clickFun="CounterplanTemplateInfoDlg.close()"/>
                </div>
            </div>
        </div>

    </div>
</div>
<script src="${ctxPath}/static/modular/yjya/counterplanTemplate/counterplanTemplate_info.js"></script>
<script src="${ctxPath}/static/js/plugins/jquery.combo.select.js"></script>
@}
